<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="comm.util.QuikHashMap"%>
<%@page import="comm.util.RequestManager"%>
<%
	QuikHashMap hm = RequestManager.getRequest(request);
	ArticleProc article = new ArticleProc();
	ArrayList lt = article.getArticleSearchList(request);
	int cntLt = 0;
	if(lt!=null)
		cntLt = lt.size();
%>    


<%@page import="java.util.ArrayList"%>
<%@page import="quik.article.ArticleProc"%>


<%@page import="comm.util.CommUtil"%>
<h3> <%="'"+hm.get("S")+"'"%> 포함하는 글	검색결과 ( <%=cntLt %> )</h3>

<%if(lt!=null&&lt.size()>0){
			for(int i = 0 ; i < lt.size() ; i++){
				QuikHashMap ahm = (QuikHashMap)lt.get(i);
		%>
		<div id="content-top"></div>
		<div id="lista" class="box">
			<div id="content-text">
				<div class="img"><a href="<%=request.getContextPath()%>/user/<%=ahm.get("MEMBER_SEQ")%>"><img src="<%=request.getContextPath()%>/data/userImage/<%=ahm.get("MEMBER_SEQ")%>/<%=ahm.get("MEMBER_IMG")%>" width="<%=CommUtil.IMG_WIDTH %>" height="<%=CommUtil.IMG_WIDTH %>"/></a></div>
				<div class="nickname"><a href="<%=request.getContextPath()%>/user/<%=ahm.get("MEMBER_SEQ")%>"><%=ahm.get("MEMBER_NICK") %></a></div>
				<div class="body"><%=CommUtil.addLinkToUrlPattern(CommUtil.htmlFiltering(ahm.get("ARTICLE_CONTENT").toString()))%></div>
				<div class="fileArea">
					<%if(ahm.get("FILE")!=null){ %>
						<%if(ahm.get("DATA_TYPE").toString().equals("0")){//이미지  파일 %>
						<div><img src="./data/groupData/<%=session.getAttribute("SESSION_MEMBER_GROUPSEQ")%>/<%=ahm.get("FILE")%>"/></div>
						<div><a href="./data/groupData/<%=session.getAttribute("SESSION_MEMBER_GROUPSEQ")%>/<%=ahm.get("FILE")%>" target="_blank"><%=ahm.get("ORIGIN_FILE")%></a></div>
						<%}else if(ahm.get("DATA_TYPE").toString().equals("1")){ //이미지외의 파일들%>
						<div>DATA</div>
						<div><a href="./data/groupData/<%=session.getAttribute("SESSION_MEMBER_GROUPSEQ")%>/<%=ahm.get("FILE")%>" target="_blank"><%=ahm.get("ORIGIN_FILE")%></a></div>
						<%} %>
					<%}else if(ahm.get("COMMENT")!=null){//링크정보 %>
						<div><a href="<%=ahm.get("COMMENT")%>" target="_blank"><%=ahm.get("COMMENT") %></a></div>
					<%} %>
				</div>
				<div class="date"><%=ahm.get("ARTICLE_REGDATE") %></div>
			</div>
		</div>
		<div id="content-bottom"></div>
		<%}
		}else{
		%>
			<div>
				<p>검색된 글이 없습니다.</p>
			</div>
		<%} %>